function tijiao() {
    var name = $("#name").val();
    var password = $("#password").val();
    var reqData = {};
    reqData.loginId = name;
    reqData.pass = password;
    //window.location.href="information-list.html";
    $.ajax({
        type: 'post',
        url: "/auth/login",
        contentType: 'application/json;charset=utf-8',
        data:JSON.stringify(reqData),
        success: function(data){    //请求成功时的回调函数
            if(data.code == "1"){
                document.cookie = "name="+JSON.stringify(data.data);
                window.location.href="/main-page";
            }else{
                alert(data.msg + data.data);
            }
        },
    });

}